<template>
 <el-menu
        :style="{ width: !isCollapse ? '230px' : '64px'}"
        class="aside_container"
        @open="handleOpen"
        @close="handleClose"
        active-text-color="#ffd04b"
        :collapse="isCollapse"
        :default-active="menuActive"
       
      >
        <p class="logo-lg">{{isCollapse?'DIDI':"DIDI陪诊"}}</p>
        <TreeMenu :menuData="menuData" :index="1"></TreeMenu>

      </el-menu>

</template>
<script setup>
import TreeMenu from './TreeMenu.vue'
import { useRouter } from 'vue-router'
import { reactive,computed } from 'vue';
import { useStore } from 'vuex';
const router = useRouter()
const store = useStore()
const isCollapse=computed(()=>store.state.menu.isCollapse)
const menuData=computed(()=>store.state.menu.routerList)
const menuActive=computed(()=>store.state.menu.menuActive)


const handleClose=()=>{

}
const handleOpen=()=>{

}
</script>

<style lang="less" scoped>
.aside_container{
  height: 100%;
  background-color: #545c64;
  
  .logo-lg{
    font-size: 20px;
    text-align: center;
    height: 50px;
    line-height: 50px;
    color: #fff;
  }
}

</style>
 